﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using Pixysoft.Framework.Reflection.Controller;

namespace Pixysoft.Framework.Reflection.Core
{
    internal delegate object DynamicMethodHandler(object obj, object[] parameters);

    class DynamicMethodInfo : IDynamicMethodInfo
    {
        DynamicMethodHandler handler = null;

        public DynamicMethodInfo(DynamicMethodHandler handler)
        {
            this.handler = handler;
        }

        public object Invoke(object obj, object[] parameters)
        {
            return this.handler(obj, parameters);
        }
    }
}
